package com.groupbuying.currency.producer.service.impl;

import com.groupbuying.currency.producer.dao.CurrencyActivityDao;
import com.groupbuying.currency.producer.domain.CurrencyActivityDO;
import com.groupbuying.currency.producer.service.CurrencyActivityService;
import com.groupbuying.currency.producer.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class CurrencyActivityServiceImpl implements CurrencyActivityService {
	@Autowired
	private CurrencyActivityDao currencyActivityDao;
	
	@Override
	public CurrencyActivityDO get(String activityId){
		return currencyActivityDao.get(activityId);
	}
	
	@Override
	public List<CurrencyActivityDO> list(Map<String, Object> map){
		return currencyActivityDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return currencyActivityDao.count(map);
	}
	
	@Override
	public int save(CurrencyActivityDO currencyActivity){
		return currencyActivityDao.save(currencyActivity);
	}
	
	@Override
	public int update(CurrencyActivityDO currencyActivity){
		return currencyActivityDao.update(currencyActivity);
	}
	
	@Override
	public int remove(String activityId){
		return currencyActivityDao.remove(activityId);
	}
	
	@Override
	public int batchRemove(String[] activityIds){
		return currencyActivityDao.batchRemove(activityIds);
	}

	@Override
    public R addCustomerCurrency(Map<String, Object> params){
		return R.ok();
	}


	@Override
	public R addPlatformCurrency(Map<String, Object> params){
		return R.ok();
	}

}
